package com.sawen.houserent.service;

import com.sawen.houserent.bean.User;
import com.sawen.houserent.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

   /*注册*/
    @Override
    public void insertSelective(User user) {
         userMapper.insertSelective(user);
    }

    @Override
    public User login(User user) {
     return userMapper.login(user);
    }

    @Override
    public User getEmail(User user) {
        return userMapper.getEmail(user);
    }

    @Override
    public void autoLogin(User user) {
        userMapper.autoLogin(user);   }

    @Override
    public User setlctUser(User user) {
        return userMapper.setlctUser(user);
    }
}
